-- GENERATED SPELL FOR [Foreman Kaleiki] --


function spell0_27238(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27238', 10330, 1)
end

function spell1_27238(pUnit, Event) --@Mighty Blow,n/a--
pUnit:FullCastSpellOnTarget(43673,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27238', 0, 1)
end

function Sorts_27238(pUnit, Event)
local choix_sorts_27238 = math.random(0, 1)
if choix_sorts_27238 == 0 then
pUnit:RegisterEvent('spell0_27238', 1, 1)
end
if choix_sorts_27238 == 1 then
pUnit:RegisterEvent('spell1_27238', 1, 1)
end
end

function mob27238_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27238', math.random(1500, 3000), 1)
end

function mob27238_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27238_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27238_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27238, 1, 'mob27238_Action')
RegisterUnitEvent(27238, 2, 'mob27238_Leave')
RegisterUnitEvent(27238, 3, 'mob27238_Kill')
RegisterUnitEvent(27238, 4, 'mob27238_Die')
